/* $RCSFile: CRMImageManager.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/AddonNice.ImageSettings/CRMImageManager.cs $
 * $log$
 * Revision 7 2010/08/09 09:44:02  christian.surieux
 *   Added Log to cs sources files
 */

using System;
using System.ComponentModel;
using ADNCRM.ServerControls;

namespace AddonNice.CRMImage
{
    /// <summary>
    /// Class used for license testing in CRMImageManager Module
    /// </summary>
    [
    LicenseProvider(typeof(ADNEncryptedLicenseProvider))
    ]
    internal sealed class CRMImageManager
    {

        private ADNEncryptedLicense _Lic =  null;
        public CRMImageManager()
        {
            _Lic = (ADNEncryptedLicense)LicenseManager.Validate(typeof(CRMImageManager), this);
        }

        public bool DemoMode
        {
            get{ return License.IsDemo;}
        }
        
        public ADNEncryptedLicense License
        {
            get{ return _Lic;}
        }
    }

}
